package org.platform.controller.system;

import com.mc.mic.core.bo.CmdBO;
import com.mc.mic.core.bus.provider.BaseServiceRegister;
import org.platform.mo.csmo.cmd31005.LoginRequestParam;
import org.platform.mo.csmo.cmd31005.LoginResponseParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author FengJie
 * @date 2018/4/10
 */
@RestController
public class LoginController extends BaseServiceRegister {

    /**
     * 登录
     */
    @PostMapping(value = "31005")
    public CmdBO login(@RequestBody CmdBO<LoginRequestParam, LoginResponseParam> cmdBO) {
        return super.serviceExecutor(cmdBO);
    }

    /**
     * 注销
     */
    @PostMapping(value = "31006")
    public CmdBO out(@RequestBody CmdBO cmdBO) {
        return super.serviceExecutor(cmdBO);
    }

}
